
{if $okMessage}<h2>{$okMessage}</h2>{/if}
{if $errorMessage}<h2>{$errorMessage}</h2>{/if}
	
<h2>My profile</h2>
<hr/>
<br/>
<form name="changeProfileForm" action="{$currentUrl}" method="post">
	<table border="0" cellspacing="2" cellpadding="2">
		<tr>
			<td width="105">Username: </td>
			<td>{$user.username}</td>
		</tr>
		<tr>
			<td width="105">Email:</td>
			<td>{$user.email}</td>
		</tr>	
		<tr>
			<td width="105">Electricity supplier:</td>
			<td>{$user.electricitySupplier}</td>
		</tr>
		<tr>
			<td width="105"><label for="firstName"> Firstname: </label></td>
			<td><input id="firstName" type="text" name="firstName" value="{$user.firstName}" /></td>
		</tr>
		<tr>
			<td width="105"><label for="lastName"> Lastname: </label></td>
			<td><input id="lastName" type="text" name="lastName" value="{$user.lastName}" /></td>
		</tr>
		<tr>
			<td colspan="2">&nbsp;</td>
		</tr>
		<tr>
			<td colspan="2" align="right"><input type="submit" name="changeProfile" value="Change" /></td>
		</tr>
	</table>
</form>



<form name="changePasswordForm" action="{$currentUrl}" method="post">
	<table border="0" cellspacing="2" cellpadding="2">
		<tr>
			<td width="105"><label for="oldPassword"> Old password: </label></td>
			<td><input id="oldPassword" type="password" name="oldPassword" /></td>
		</tr>
		<tr>
			<td width="105"><label for="password1"> New Password: </label></td>
			<td><input id="password1" type="password" name="password1" /></td>
		</tr>
		<tr>
			<td width="105"><label for="password2"> Password again: </label></td>
			<td><input id="password2" type="password" name="password2" /></td>
		</tr>
		<tr>
			<td colspan="2" align="right"><input type="submit" name="changePassword" value="Change" /></td>
		</tr>
	</table>
</form>